//
//  TSListModel.m
//  字典模型的多种使用方法
//
//  Created by 安步学车 on 2018/3/21.
//  Copyright © 2018年 aber. All rights reserved.
//

#import "TSListModel.h"

@implementation TSListModel

@end

@implementation TSMainListModel

-(void)setList:(NSArray *)list
{
    NSMutableArray *sortArr = [NSMutableArray array];
    [list enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        TSListModel *model = [[TSListModel alloc]init];
        model.age = obj[@"age"];
        model.sex = obj[@"sex"];
        model.code = obj[@"code"];
        [sortArr addObject:model];
        NSLog(@"数组的数组数据=%@",model.sex);
    }];
    _list = [sortArr copy];
}

@end
